<?php

class Empeval_Methods_Data_CompetanceGroup {
	
	public $id;
	public $name;
	public $lastModified;
	public $created;
	/**
	 *
	 * @var Empeval_Methods_Data_Competance[]
	 */
	public $competance = array();
	
	public function __construct(EmpevalCompetanceGroups $cg) {
		$this->id = $cg->getId();
		$this->name = $cg->getName();
		$this->lastModified = $cg->getLastModified();
		$this->created = $cg->getCreated();
		foreach ($cg->getCompetances() as $c)
			$this->competance[] = new Empeval_Methods_Data_Competance($c);
	}
	
}